package entity;

public class User {
    private int user_id;

    private String userName;

    private String password;
    private String real_name;
    private String phone;
    private String email;
    private String role;
    private String idCard;

    public User() {
    }

    public User(int user_id, String userName, String password, String real_name, String phone, String email, String role) {
        this.user_id = user_id;
        this.userName = userName;
        this.password = password;
        this.real_name = real_name;
        this.phone = phone;
        this.email = email;
        this.role = role;
    }

    public User(String username, String password, String realName, String phone, String email) {
        this.userName = username;
        this.password = password;
        this.real_name = realName;
        this.phone = phone;
        this.email = email;
    }
    public User(String username, String password, String realName, String phone, String email,String role) {
        this.userName = username;
        this.password = password;
        this.real_name = realName;
        this.phone = phone;
        this.email = email;
        this.role = role;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    @Override
    public String toString() {
        return "User{" +
                "昵称='" + userName + '\'' +
                ", 账户密码='" + password + '\'' +
                ", 真实姓名='" + real_name + '\'' +
                ", 电话号码='" + phone + '\'' +
                ", 电子邮箱='" + email + '\'' +
                ", 角色='" + role + '\'' +
                '}';
    }

    public String show(){
        return "用户信息："+"\n"+
                "真实姓名："+real_name+"\t"+
                "电话号码："+phone+"\t"+
                "身份证信息："+idCard+"\t"+"\n"+
                "**********************************************";
    }
}
